﻿using System;

namespace Sunlight.Dispatch.Tools {
    public static class DateExtension {
        public static DateTime ToEndEarlyMorning(this DateTime dateTime) {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 23, 59, 59);
        }

        public static DateTime ToStartEarlyMorning(this DateTime dateTime) {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 0, 0, 0);
        }
    }
}
